﻿<%@ Page Title="Funcionários" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ListarFuncionarios.aspx.cs" Inherits="TCC_Hotel.Apresentacao.Funcionarios.ListarFuncionarios" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script src="../../Scripts/jquery-1.7.2.js" type="text/javascript"></script>
    <script src="../../Scripts/Mascaras.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p class="title-telas">
        Funcionários
    </p>
    <asp:CheckBox Text="Somente ativos?" ID="ckbAtivos" runat="server" AutoPostBack="True"
        OnCheckedChanged="ckbAtivos_CheckedChanged" Checked="True" /><br />
    <asp:TextBox onkeyup="formataTexto(this,event,'Aaa');" ID="txtBusca" runat="server"></asp:TextBox>
    <asp:Button ID="btnBusca" runat="server" Text="Buscar" OnClick="btnBusca_Click" />
    <asp:Button ID="btnLimpar" runat="server" Text="Limpar" OnClick="btnLimpar_Click" />
    <asp:Button ID="btnCadastrar" runat="server" Text="Cadastrar" class="Buttons_Cadastro"
        OnClick="btnCadastrar_Click" />
    <asp:GridView ID="grdFuncionarios" runat="server" AutoGenerateColumns="False" CellPadding="4"
        Width="100%" OnRowCommand="grdFuncionarios_RowCommand" AllowPaging="True" BackColor="White"
        BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" OnPageIndexChanging="grdFuncionarios_PageIndexChanging"
        OnRowDataBound="grdFuncionarios_RowDataBound" PageSize="15">
        <Columns>
            <asp:BoundField DataField="Nome" HeaderText="Nome">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField DataField="Usuario" HeaderText="Usuário">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:BoundField HeaderText="CPF" DataField="CPF">
                <ItemStyle HorizontalAlign="Center" Width="95px" />
            </asp:BoundField>
            <asp:BoundField DataField="RG" HeaderText="RG">
                <ItemStyle HorizontalAlign="Center" Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="Cargo" HeaderText="Cargo">
                <ItemStyle HorizontalAlign="Center" />
            </asp:BoundField>
            <asp:CheckBoxField DataField="Ativo" HeaderText="Ativo">
                <ItemStyle HorizontalAlign="Center" />
            </asp:CheckBoxField>
            <asp:ButtonField CommandName="editarFuncionario" HeaderText="Editar" Text="Editar"
                AccessibleHeaderText="Editar">
                <ItemStyle HorizontalAlign="Center" />
            </asp:ButtonField>
            <asp:ButtonField CommandName="detalharFuncionario" HeaderText="Detalhes" Text="Detalhes">
                <ItemStyle HorizontalAlign="Center" />
            </asp:ButtonField>
            <asp:ButtonField CommandName="desligarFuncionario" HeaderText="Desligar" Text="Desligar"
                AccessibleHeaderText="Desligar">
                <ItemStyle HorizontalAlign="Center" />
            </asp:ButtonField>
        </Columns>
        <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
        <HeaderStyle BackColor="#4B6C9E" Font-Bold="True" ForeColor="white" BorderColor="#4B6C9E"
            BorderStyle="Double" BorderWidth="1px" />
        <PagerSettings LastPageText="&gt;&gt;" Mode="NextPreviousFirstLast" NextPageText="Próximo"
            Position="TopAndBottom" PreviousPageText="Anterior" />
        <PagerStyle BackColor="White" ForeColor="#003399" HorizontalAlign="Center" BorderColor="#4B6C9E"
            BorderStyle="None" />
        <RowStyle BackColor="White" ForeColor="#003399" />
        <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
        <SortedAscendingCellStyle BackColor="#EDF6F6" />
        <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
        <SortedDescendingCellStyle BackColor="#D6DFDF" />
        <SortedDescendingHeaderStyle BackColor="#002876" />
    </asp:GridView>
    <br />
</asp:Content>
